package com.mroapp.activity;

import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;
import android.widget.TextView;

import com.mroapp.R;
import com.mroapp.base.BaseActivity;

/**
 * Created by apple on 16/6/30.
 */
public class RecruitActivity extends BaseActivity {
    private TextView title;
    private ImageView btn_arrow_back;
    private WebView cruit_webview;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.cruit);
        initView();

    }

    public void initView(){
        title=(TextView)findViewById(R.id.title_bar_text);
        title.setText("招贤纳士");
        btn_arrow_back=(ImageView)findViewById(R.id.btn_arrow_back);
        btn_arrow_back.setOnClickListener(this);
        cruit_webview=(WebView)findViewById(R.id.cruit_webview);
        cruit_webview.loadUrl("http://www.taobao.com");
        cruit_webview.setWebViewClient(new WebViewClient());
        WebSettings webSettings=cruit_webview.getSettings();
        webSettings.setJavaScriptEnabled(true);
        cruit_webview.addJavascriptInterface(new WebAppInterface(RecruitActivity.this),"Android");
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.btn_arrow_back:
                RecruitActivity.this.finish();
                break;
        }
    }




}
